package designMode.prototype;

/**
 * Created by jingqing.zhou on 2015/4/10.
 * 抽象原型类 实现Cloneable接口，并提供一个对外的克隆自身的方法clone();
*/
public class  Prototype implements Cloneable {
    private String name ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Object clone(){
        try {
            return  super.clone();

        }catch (Exception e){
            e.printStackTrace();
            return  null ;
        }
    }
}
